from django.shortcuts import render_to_response
from django.contrib.auth.decorators import login_required
from django.template import RequestContext
from openpolitics.models import Person, Elections

def index(request,
          template_name='factcheck'):
    people = Person.objects.all()[0]
    return render_to_response('%s/index.html' % template_name, {
        'people': people,
    }, context_instance=RequestContext(request))